GtkScrolledWindow: Add overlay scrollbars
authorMatthias Clasen <mclasen@redhat.com>
Thu, 9 Oct 2014 03:34:32 +0000 (23:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 21 Oct 2014 03:07:45 +0000 (23:07 -0400)
commit4455266c5b23be8173b9c93a4cb576f768fb732d
tree0a08f32a577159069ea94597032b563b72fda8d4
parent05ab0f222701d71fc3a96a724d5d9ad34c7c7efe
GtkScrolledWindow: Add overlay scrollbars

This commit adds a mode to GtkScrolledWindow in which it puts
narrow, auto-hiding scrollbars over the content, instead of
allocating room for the scrollbars outside of the content. We
use traditional scrollbars if we find a mouse or if overlay
scrolling has explicitly turned off.

For test purposes, GTK_TEST_TOUCHSCREEN can be used to get
overlay scrolling even in the presence of a mouse. The
environment variable GTK_OVERLAY_SCROLLING can also be used
to force overlay scrolling on or off.
gtk/gtkscrolledwindow.c
gtk/gtkscrolledwindow.h